/*	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------*/
/*!	@file	<io_embedded.h>
///	@path	~/src/python/core/embedded/
///	@date	2007/06/23
///	@desc	Embedded IO of python core.
*/

#include "xeres.h"

#ifdef __cplusplus
extern "C" {
#endif

/* CRT op */

#define _INC_STAT_INL

#define	getenv		_hack_getenv

#define	stat		_hack_stat

#define	fopen		_hack_fopen

/*
#define	fclose		_hack_fclose

#define	fread		_hack_fread
#define	fwrite		_hack_fwrite

#define	fgetc		_hack_fgetc
#define	fputc		_hack_fputc

#define	fgets		_hack_fgets
#define	fputs		_hack_fputs

#define	fgetpos		_hack_fgetpos
#define	fsetpos		_hack_fsetpos

#define	fseek		_hack_fseek
#define	ftell		_hack_ftell

#define	fseek64		_hack_fseek64
#define	ftell64		_hack_ftell64

#define	fprintf		_hack_fprintf
#define	vfprintf	_hack_vfprintf

#define	feof		_hack_feof

#define	ferror		_hack_ferror
#define	clearerr	_hack_clearerr

#define	fflush		_hack_fflush

#define	rewind		_hack_rewind

#define	setvbuf		_hack_setvbuf

#define	tmpfile		_hack_tmpfile
*/
	char * _hack_getenv( const char * name );
	int _hack_stat( const char * filename , void * buf );
	FILE * _hack_fopen( const char * filename , const char * mode );
/*
	int _hack_fclose( FILE * file );
	size_t _hack_fread( void * buffer , size_t size , size_t count , FILE * stream );
	size_t _hack_fwrite( const void * buffer , size_t size , size_t count , FILE * stream );
	int _hack_fgetc( FILE * stream );
	int _hack_fputc( int c , FILE * stream );
	char * _hack_fgets( char * str , int n , FILE * stream );
	int _hack_fputs( const char * str , FILE * stream );
	int _hack_fgetpos( FILE * stream , fpos_t * pos );
	int _hack_fsetpos( FILE * stream , const fpos_t * pos );
	int _hack_fseek( FILE * stream , long offset , int origin );
	long _hack_ftell( FILE * stream );
	int _hack_fseek64( FILE * stream , long offset , int origin );
	__int64 _hack_ftell64( FILE * stream );
	int _hack_fprintf( FILE * stream , const char * format , ... );
	int _hack_vfprintf( FILE * stream , const char * format , va_list argptr );
	int _hack_feof( FILE * stream );
	int _hack_ferror( FILE * stream );
	void _hack_clearerr( FILE * stream );
	int _hack_fflush( FILE * stream );
	void _hack_rewind( FILE * stream );
	int _hack_setvbuf( FILE * stream , char * buffer , int mode , size_t size );
	FILE * _hack_tmpfile( void );
*/

/* WIN32 op */

#ifdef __cplusplus
};
#endif
